﻿using DAL.Permission;
using Model.Permission;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;

namespace BLL.Permission
{
    public class ExtendedPermissionTypeBLL
    {
        ExtendedPermissionTypeDAL dal = new ExtendedPermissionTypeDAL();
        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(int ExtendedPermissionTypeID, string typeName)
        {
            return dal.Exists(ExtendedPermissionTypeID, typeName);
        }


        /// <summary>
        /// 是否存在该记录
        /// </summary>
        public bool Exists(string typeName)
        {
            return dal.Exists(typeName);
        }

        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(ExtendedPermissionTypeEntity model)
        {
            return dal.Add(model);
        }

        /// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(ExtendedPermissionTypeEntity model)
        {
            return dal.Update(model);
        }

        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(int ExtendedPermissionTypeID)
        {

            return dal.Delete(ExtendedPermissionTypeID);
        }
        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool DeleteList(string ExtendedPermissionTypeIDlist)
        {
            return dal.DeleteList(ExtendedPermissionTypeIDlist);
        }

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public ExtendedPermissionTypeEntity GetModel(int ExtendedPermissionTypeID)
        {

            return dal.GetModel(ExtendedPermissionTypeID);
        }

    }
}
